﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Yammu.Utils
{
    public static class PathUtils
    {
        static char[] _seperators = new char[] {'/', '\\'};

        public static void GetPathAndName(string fullPath, out string path, out string name)
        {
            path = "";
            name = "";
            /*if( string.IsNullOrWhiteSpace(fullPath))
            {
                return;
            }

            fullPath.LastIndexOfAny(_seperators);

            string[] splitPath = fullPath.Split(_seperators);

            if( splitPath.Length==0)
            {
                throw new ArgumentException("Should not have reached here");
            }

            name = splitPath[splitPath.Length-1];
            if( splitPath.Length==1)
            {
                return;
            }

            path.*/
            
        }
    }
}
